﻿#region

using System.Configuration;

#endregion

namespace HouseHoldBudget.Core.Data
{
    public class DataSettingsManager
    {
        #region Instance Methods

        public virtual DataSettings LoadSettings()
        {
            var shellSettings = new DataSettings();

            var connection = ConfigurationManager.ConnectionStrings["HouseHoldBudgetConnection"];
            shellSettings.DataConnectionString = connection.ConnectionString;
            shellSettings.DataProvider = connection.ProviderName;

            return shellSettings;
        }

        #endregion
    }
}